package com.supplychain.scm.core.delay.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName DelayMessage
 * @Description redis队列消息载体
 * @createTime 09:14:00 2022/10/18
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class QueueMessagePayload<T> implements Serializable {

    /**
     * 业务处理类型枚举
     */
    private String handlerType;
    /**
     * 消息数据
     */
    private T data;

    /**
     * 消息时间
     */
    private LocalDateTime msgTime;
}
